from api.ihrm_api import IHRMApi


class TokenUtil:


    #封装一个获取token的方法
    @classmethod
    def get_token(cls):
        body={"mobile": "13800000002","password": "123456"}
        resp =IHRMApi.login(body)
        token =resp.json().get("data")
        return token
        pass

if __name__ == '__main__':
    print(TokenUtil.get_token())
